home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 March / Disc 2 / APC0403D2.ISO / workshop / gamserv / files / GHSetup.1.5.0004.exe / %MAINDIR% / RTCW.gof < prev    next >
Encoding:
Text File  |  2004-01-15  |  9.2 KB  |  367 lines

  1. // Class definition for quake2.exe
  2.  
  3. class RTCW
  4. {
  5.     /***************************************************************
  6.     * Begin of required properties for all GOFs.
  7.     * The 'Display' names should never be changed on these variables.
  8.     ***************************************************************/
  9.     [
  10.      Display("Host Name"), 
  11.      Description("The name of the server."),
  12.      Default("RTCW Server"),
  13.      AlwaysBrowserVisible,
  14.     ]
  15.     string sv_hostname;
  16.  
  17.     [
  18.      Display("Current Players"), 
  19.      Description("The current number of players connected to the server."), 
  20.      Readonly,
  21.      AlwaysBrowserVisible
  22.     ]
  23.     uint32 clients;
  24.  
  25.     [
  26.      Display("Maximum Players"), 
  27.      Description("The maximum number of players allowed on the server."), 
  28.      Default("16"),
  29.      AlwaysBrowserVisible
  30.     ]
  31.     uint32 sv_maxclients;
  32.  
  33.     [
  34.      Display("Private Players"), 
  35.      Description("The maximum number of private clients allowed on the server."), 
  36.      Default("2")
  37.     ]
  38.     uint32 sv_privateClients;
  39.  
  40.     [
  41.      Display("Max FPS"), 
  42.      Default("20"),
  43.      Description("The maximum number of frames sent to the client.")
  44.     ]
  45.     uint32 sv_fps;
  46.  
  47.     [
  48.      Display("Zombie Time"), 
  49.      Default("1"),
  50.      Description("The maximum number of minutes before inactive players are booted.")
  51.     ]
  52.     uint32 sv_zombietime;
  53.  
  54.     [
  55.      Display("Complaint Limit"),
  56.      Default("3"),
  57.      Description("Max number of player-killing complaints before booting.")
  58.     ]
  59.     uint32 g_complaintlimit;
  60.  
  61.     [
  62.      Display("Team Force Balance"),
  63.      Default("1"),
  64.      Description("Max number of player-killing complaints before booting.")
  65.     ]
  66.     uint32 sv_teamForceBalance;
  67.  
  68.     [
  69.      Display("Max Ping"),
  70.      Default("500"),
  71.      Description("Maximum allowable ping.")
  72.     ]
  73.     uint32 sv_maxPing;
  74.  
  75.     [
  76.      Display("Min Ping"),
  77.      Default("0"),
  78.      Description("Minimum allowable ping.")
  79.     ]
  80.     uint32 sv_minPing;
  81.  
  82.     [
  83.      Display("Hunk Megs"),
  84.      Default("32"),
  85.      Description("Set the amount of memory you want to reserve for game play dedicated server memory optimizations.")
  86.     ]
  87.     uint32 com_hunkMegs;
  88.  
  89.     [
  90.      Display("Zone Megs"),
  91.      Default("16"),
  92.      Description("Can be adjusted to provide better performance on systems with more than 64MB of memory.")
  93.     ]
  94.     uint32 com_zoneMegs;
  95.  
  96.     [
  97.      Display("Inactvity"),
  98.      Default("0"),
  99.      Description("Set the amount of time a player can remain inactive before kicked.")
  100.     ]
  101.     uint32 g_inactivity;
  102.  
  103.     [
  104.      Display("Port"), 
  105.      Description("The UDP port the server is using."), 
  106.      Readonly,
  107.      Default("27960") // This will be used when inserting a new server.
  108.     ]
  109.     uint32 port;
  110.  
  111. /*
  112.     [
  113.      Display("Game Directory"), 
  114.      Description(
  115.         "The directory used for additional map information.  "
  116.         "This indicates which mod the server is using."), 
  117.      Default("baseq2"),
  118.      AlwaysBrowserVisible,
  119.      AfterLevelChange
  120.     ]
  121.     string game;
  122. */
  123.  
  124.     [
  125.      Display("Extra Parameters"), 
  126.      Description(
  127.         "This property can be used to pass additional command-line "
  128.         "parameters to the game server."), 
  129.      Default("")
  130.     ]
  131.     string extraparam; // This name should never change.
  132.  
  133.     [
  134.     Display("Initial Level"),
  135.     Description("When the server first starts it will use this level."),
  136. /*
  137.      ValueMap{
  138.         "Dunno 1", "Dunno2"
  139.         },
  140. */
  141.     Values{
  142.         "mp_depot","mp_assault","mp_sub",
  143.         "mp_village","mp_base","mp_assault",
  144.         "mp_castle","mp_beach"
  145.         },
  146.      Default("mp_depot")
  147.     ]
  148.     string initlevel;
  149.  
  150.     [
  151.      Display("Current Level"),
  152.      Description("The current map the server is using."),
  153.      AlwaysBrowserVisible,
  154.      Readonly,
  155.      UsesValues("initlevel")
  156.     ]
  157.     string mapname;
  158.  
  159.     [
  160.      Display("Time Limit"), 
  161.      Description(
  162.         "The number of minutes the server will remain on a level.  "
  163.         "If this is 0 there is no time limit."),
  164.      AlwaysBrowserVisible,
  165.      Default("0") 
  166.     ]
  167.     uint32 timelimit;
  168.  
  169.     [
  170.      Display("Score Limit"), 
  171.      Description(
  172.         "When a player's score reaches this level, the server will change "
  173.         "to the next map.  If this number is 0 there is no score limit."),
  174.      AlwaysBrowserVisible,
  175.      Default("20") 
  176.     ]
  177.     uint32 fraglimit;
  178.     /***************************************************************
  179.     * End of required properties for all GOFs.
  180.     ***************************************************************/
  181.  
  182.  
  183.     [
  184.      Display("Game DLL Location"), 
  185.      Description(
  186.         "The name of the folder being used by the game server for "
  187.         "custom map information."), 
  188.      Readonly,
  189.     ]
  190.     string gamename;
  191.  
  192.     [
  193.      Display("Version"),
  194.      Description("The version of the RTCW server."), 
  195.      AlwaysBrowserVisible,
  196.      Readonly,
  197.     ]
  198.     string version;
  199.  
  200.     [
  201.      Display("RTCW Protocol"),
  202.      Description("The RTCW protocol number the server is using."), 
  203.      Readonly,
  204.      AlwaysBrowserVisible,
  205.     ]
  206.     string protocol;
  207.  
  208.     [
  209.      Display("RCON Password"),
  210.      Description(
  211.         "The password required to use rcon."),
  212.      Default(""),
  213.     ]
  214.     string rconpassword;
  215.  
  216.     [
  217.      Display("Private Password"),
  218.      Description(
  219.         "The password required to join the server.  If this is empty no "
  220.         "password is required to join the server."),
  221.      Default(""),
  222.     ]
  223.     string sv_privatePassword;
  224.  
  225.  
  226.     [
  227.      MethodVar,
  228.      Display("Map Name"),
  229.      Description(""),
  230.      UsesValues("initlevel")
  231.     ]
  232.     string map;
  233.  
  234.     [
  235.      Display("Change Current Level"),
  236.      Description("Changes the current level."),
  237.      ConsoleCommand("map %1")
  238.     ]
  239.     void ChangeLevel(MethodVar map);
  240.  
  241.     [
  242.      Display("Private Clients"), 
  243.      AlwaysBrowserVisible,
  244.      Default("0")
  245.     ]
  246.     uint32 sv_privateClients;
  247.  
  248.     [
  249.      Display("Capture Limit"), 
  250.      AlwaysBrowserVisible,
  251.      Default("0")
  252.     ]
  253.     uint32 capturelimit;
  254.  
  255.     [
  256.      Display("Minimum Bots"), 
  257.      Description(
  258.         "Indicates the minimum number of bots to allow on the server."),
  259.      AlwaysBrowserVisible,
  260.      Default("0")
  261.     ]
  262.     uint32 bot_minplayers;
  263.  
  264.     [
  265.      Display("Maximum Game Clients"), 
  266.      //Description(
  267.      //   "Indicates the maximum number of clients to allow on the server."),
  268.      AlwaysBrowserVisible,
  269.      Default("0")
  270.     ]
  271.     uint32 g_maxGameClients;
  272.  
  273.     [
  274.      Display("Flood Protect"), 
  275.      AlwaysBrowserVisible,
  276.      Default("0")
  277.     ]
  278.     uint32 sv_floodProtect;
  279.  
  280.     [
  281.      Display("Rate"), 
  282.      AlwaysBrowserVisible,
  283.      Default("0")
  284.     ]
  285.     uint32 sv_maxRate;
  286.  
  287.     [
  288.      Display("Game Type"), 
  289.      Description("Sets the type of the game the server will host."),
  290.      AlwaysBrowserVisible,
  291.      Default("5")
  292.     ]
  293.     uint32 g_gametype;
  294.  
  295.     [
  296.      Display("Warmup Time"), 
  297.      Description(
  298.         "Sets the amount of time in seconds that players may practice before "
  299.         "the actual tournament match starts."),
  300.      Default("20"),
  301.     ]
  302.     uint32 g_warmup;
  303.  
  304.     [
  305.      Display("Allow Friendly Fire"), 
  306.      Description(
  307.         "Determines if players can damage their own teammates."),
  308.      Default("True"),
  309.     ]
  310.     boolean g_friendlyFire;
  311.  
  312.     [
  313.      Display("Allow Vote"), 
  314.      Description(
  315.         "Enable players connected to the server to call for and vote on "
  316.         "changes including: map, map restart, kick, and g_gametype."),
  317.      Default("True"),
  318.     ]
  319.     boolean g_allowvote;
  320.  
  321.     /***************************************************************
  322.     * Begin of required methods for all GOFs.
  323.     * The names of these methods should never be changed.
  324.     ***************************************************************/
  325.     [
  326.      Display("Set Property"),
  327.      Description("Sets a server property."),
  328.      ConsoleCommand("set %1 \"%2\"")
  329.     ]
  330.     void SetProperty(string strVar, string strValue);
  331.     /***************************************************************
  332.     * End of required methods for all GOFs.
  333.     ***************************************************************/
  334.     
  335.     
  336.     /***************************************************************
  337.     * Begin of recommended methods for all GOFs.
  338.     * The names of these methods should never be changed.
  339.     ***************************************************************/
  340.     [
  341.      Display("Kick Player from Server"),
  342.      Description("Removes player from server."),
  343.      ConsoleCommand("kick \"%1\"")
  344.     ]
  345.     void KickPlayerByName(string strID);
  346.     /***************************************************************
  347.     * End of recommended methods for all GOFs.
  348.     ***************************************************************/
  349.     
  350.     
  351.     [
  352.      Display("Execute Config File"),
  353.      Description("Executes a config file of console commands."),
  354.      ConsoleCommand("exec %1")
  355.     ]
  356.     void Exec(string strMasterList);
  357.  
  358.     [
  359.      Display("Status"),
  360.      Description("Gets the status of the game server."),
  361.      ConsoleCommand("status")
  362.     ]
  363.     void Status();
  364.  
  365. };
  366.     
  367.